import {ref} from "vue";

export function useHistoryHeader() {
    const isShowLookHistory = ref<boolean>(true)

    function switchoverPage(name: string) {
        if (name === 'history') {
            isShowLookHistory.value = true
        } else if (name === 'collect') {
            isShowLookHistory.value = false
        }
    }

    return {
        isShowLookHistory,
        switchoverPage
    }
}